package com.pengshun.modules.api.user.para;

/**
 * 正则表达式
 * @author TaoYan
 */
public class RegularExpression {

    /** 手机号码 */
    public static final String PHONE = "^1[3456789][0-9]{9}$";

    /** 4位数字验证码 */
    public static final String VERIFYCODE = "^[0-9]{4}$";

    /** 6位数字交易密码 */
    public static final String TRANSACTION_PASSWORD = "^[0-9]{6}$";

    /** 登录密码(6-16数字或字母) */
    public static final String PASSWORD = "^[a-zA-Z0-9]{6,16}$";

    /** 图片地址 */
    public static final String URL = "^http\\://duanpanzi\\.oss-cn-shanghai\\.aliyuncs\\.com/[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}\\.[a-zA-Z]{3,4}$";

    /** 性别(1、男/2、女) */
    public static final String SEX = "^[12]{1}$";

    /**
     * 商户类型(1、自营/2、预存)
     */
    public static final String MERCHANT_COOPERATION_WAYS = "^[12]{1}$";

    public static final  String IDCARD = "^[1-9]\\d{5}[1-9]\\d{3}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{3}([0-9]|X)$";


    /** 派遣类型(1、统一价位/2、周内于周末/3、平时与节假日) */
    public static final String DISPATCH_TYPE = "^[123]{1}$";

    /** 发票类型(1、收据/2、全普/3、专普/4全专+) */
    public static final String ECEIPT_TYPE = "^[1234]{1}$";

    /** 只能输入汉字 */
    public static final String CHINESE = "^[\u4e00-\u9fa5]*$";

    /** 合同状态(1、过期合同/2、当前合同/3、未来合同) */
    public static final String CONTRACT_STATE = "^[123]{1}$";

}
